<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>数据库导出Excel</title>
</head>
<body>
<h1>文档导出</h1>

    <button type="button" id=studentId onclick="upload()">Excel导出</button>
    
    
    <div>
		<input id="addr" hidden th:value="${#httpServletRequest.getScheme()+'://'+#httpServletRequest.getServerName()+':'+#httpServletRequest.getServerPort()+#httpServletRequest.getContextPath()} " />
		<!-- 获取到controller路径 -->
	</div>
	


</body>
<!-- <script>//js
    function upload() {
    	$.ajax({
            type: "post",
            async: false,
            cache: false,
            processData: false,
            contentType: false,
            url: "/ExcelStudent/Excel",
            success: function (res) {
                alert(Excel导出成功);
            }
        })
    }
</script> -->
<script th:src="@{/libs/jquery/jquery-3.5.1.js}"></script>
	<script th:src="@{/libs/bootstrap/bootstrap4dist/js/bootstrap.js}"></script>
	<script th:src="@{/libs/bootstrap-table/unpkg.com_bootstrap-table@1.15.3_dist_bootstrap-table.min.js}"></script>
	<script th:src="@{/libs/bootstrap-table/unpkg.com_bootstrap-table@1.15.3_dist_locale_bootstrap-table-zh-CN.min.js}"></script>
<script th:src="@{/js/Exceldc/Excel.js}"></script>
</html>